import {
  SAVE_ALL_THRESHOLD,
  SAVE_ANALYSIS_WELLS,
  SAVE_BASE_LINE,
  SAVE_BASELINE_TYPE, SAVE_CQ_SINGLE_THRESHOLD,
  SAVE_DATA_ANALYSIS_METHOD,
  SAVE_GROUP_BY_LISTS,
  SAVE_HEAT_MAP_INFO,
  SAVE_MESSAGE_LISTS, SAVE_QUANTIFICATION_CUT_OFF,
  SAVE_TABLE_SELECTED_LISTS,
  SAVE_TARGET_SELECTED_ARR,
  SAVE_CHANNEL,
  SAVE_LINE_OPTION,
  SAVE_LOAD,
} from "./constants";

export const saveTargetSelectedArr = targetSelectedArr => ({
  type: SAVE_TARGET_SELECTED_ARR,
  targetSelectedArr
});

export const saveMessageLists = reduxMessageLists => ({
  type: SAVE_MESSAGE_LISTS,
  reduxMessageLists
});

export const saveDataAnalysisMethod = dataAnalysisMethod => ({
  type: SAVE_DATA_ANALYSIS_METHOD,
  dataAnalysisMethod
});

export const saveTableSelectedLists = tableSelectedLists => ({
  type: SAVE_TABLE_SELECTED_LISTS,
  tableSelectedLists
});

export const saveAllThreshold = allThreshold => ({
  type: SAVE_ALL_THRESHOLD,
  allThreshold
});

export const saveAnalysisWells = analysisWells => ({
  type: SAVE_ANALYSIS_WELLS,
  analysisWells
});

export const saveGroupByLists = groupByLists => ({
  type: SAVE_GROUP_BY_LISTS,
  groupByLists
});

export const saveBaseLine = baseLine => ({
  type: SAVE_BASE_LINE,
  baseLine
});

export const saveHeatMapInfo = heatMapInfo => ({
  type: SAVE_HEAT_MAP_INFO,
  heatMapInfo
});

export const saveBaselineType = baselineType => ({
  type: SAVE_BASELINE_TYPE,
  baselineType
});


export const saveCqSingleThreshold = cqSingleThreshold => ({
  type: SAVE_CQ_SINGLE_THRESHOLD,
  cqSingleThreshold
});

export const saveQuantificationCutOff = quantificationCutOff => ({
  type: SAVE_QUANTIFICATION_CUT_OFF,
  quantificationCutOff
});
export const saveChannel = channel => ({
  type: SAVE_CHANNEL,
  channel
});
export const saveLineOption = lineOption => ({
  type: SAVE_LINE_OPTION,
  lineOption
});
export const saveIsLoad = isLoad => ({
  type: SAVE_LOAD,
  isLoad
});
